package com.kuang.traffic;

import java.util.ArrayList;

/**
 * @author kjx
 */
public class Simulate {

    public static void main(String[] args) {
        //节点声明
        ArrayList<Route>[] nodes = new ArrayList[11];
        //1到3的路线
        Route x1 = new Route(3,5000);
        Route x2 = new Route(3,6000);
        Route x3 = new Route(3,7000);
        Route x4 = new Route(3,8000);
        Route x5 = new Route(3,9000);
        nodes[1].add(x1);
        nodes[1].add(x2);
        nodes[1].add(x3);
        nodes[1].add(x4);
        nodes[1].add(x5);
        //1到7的路线
        Route x10 = new Route(7,1500);
        Route x11 = new Route(7,1600);
        Route x12 = new Route(7,1700);
        nodes[1].add(x10);
        nodes[1].add(x11);
        nodes[1].add(x12);
        //3到6的路线
        Route x6 = new Route(6,500);
        Route x7 = new Route(6,600);
        nodes[3].add(x6);
        nodes[3].add(x7);
        //6到7的路线
        Route x8 = new Route(7,800);
        Route x9 = new Route(7,900);
        nodes[6].add(x8);
        nodes[6].add(x9);
    }
}




